Closed Bug 1868329 Opened 1 years ago Closed 6 months ago

Fix a clippy warning in xpcom/rust/xpcom/src/refptr.rs

Categories

(Developer Infrastructure :: Lint and Formatting, task)

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1889238

People

(Reporter: Sylvestre, Unassigned, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=rust])

Filling as a good first bug to learn workflows.

xpcom/rust/xpcom/src/refptr.rs
    6:1  warning  this import is redundant 
    clippy::single_component_path_imports (clippy)

Link to the code:
https://searchfox.org/mozilla-central/source/xpcom/rust/xpcom/src/refptr.rs#6

to run clippy:

 ./mach lint -l clippy xpcom/rust/xpcom/ -W 

As the change is trivial, it is just to learn how to contribute to Firefox.

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Status: NEW → RESOLVED
Closed: 6 months ago
Duplicate of bug: 1889238
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.